package com.ibeetl.cms.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;

import com.ibeetl.admin.core.util.ValidateConfig;

import org.beetl.sql.core.TailBean;
import java.math.*;

import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;

import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.Version;
import org.beetl.sql.core.annotatoin.LogicDelete;


/* 
* 订单表
* gen by Spring Boot2 Admin 2019-01-10
*/
public class ExtOrder extends BaseEntity{

    //订单号
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @SeqID(name = ORACLE_CORE_SEQ_NAME)
    @AutoID	

    private String orderid ;
	
    //课程主键ID

    private Integer courseid ;
	
    //课程价格

    private Integer price ;
	
    //交易状态(0初始状态 1支付成功 2完成状态)
    @Dict(type="state_type")

    private Integer state ;
	
    //匹配优先级0 普通 1 优先
    @Dict(type="rank_type")

    private Integer rank ;
	
    //创建时间

    private Date createtime ;
	
    //创建人

    private String createuser ;
	
    //更新时间

    private Date updatetime ;
	
    //修改人

    private String updateuser ;

    //删除标识
    @JsonIgnore
    protected Integer delFlag = 0;

    public ExtOrder()
    {
    }

    /**订单号
    *@return 
    */
    public String getOrderid(){
	    return  orderid;
    }
    /**订单号
    *@param  orderid
    */
    public void setOrderid(String orderid){
        this.orderid = orderid;
    }

    /**课程主键ID
    *@return 
    */
    public Integer getCourseid(){
	    return  courseid;
    }
    /**课程主键ID
    *@param  courseid
    */
    public void setCourseid(Integer courseid){
        this.courseid = courseid;
    }

    /**课程价格
    *@return 
    */
    public Integer getPrice(){
	    return  price;
    }
    /**课程价格
    *@param  price
    */
    public void setPrice(Integer price){
        this.price = price;
    }

    /**交易状态(0初始状态 1支付成功 2完成状态)
    *@return 
    */
    public Integer getState(){
	    return  state;
    }
    /**交易状态(0初始状态 1支付成功 2完成状态)
    *@param  state
    */
    public void setState(Integer state){
        this.state = state;
    }

    /**匹配优先级0 普通 1 优先
    *@return 
    */
    public Integer getRank(){
	    return  rank;
    }
    /**匹配优先级0 普通 1 优先
    *@param  rank
    */
    public void setRank(Integer rank){
        this.rank = rank;
    }

    /**创建时间
    *@return 
    */
    public Date getCreatetime(){
	    return  createtime;
    }
    /**创建时间
    *@param  createtime
    */
    public void setCreatetime(Date createtime){
        this.createtime = createtime;
    }

    /**创建人
    *@return 
    */
    public String getCreateuser(){
	    return  createuser;
    }
    /**创建人
    *@param  createuser
    */
    public void setCreateuser(String createuser){
        this.createuser = createuser;
    }

    /**更新时间
    *@return 
    */
    public Date getUpdatetime(){
	    return  updatetime;
    }
    /**更新时间
    *@param  updatetime
    */
    public void setUpdatetime(Date updatetime){
        this.updatetime = updatetime;
    }

    /**修改人
    *@return 
    */
    public String getUpdateuser(){
	    return  updateuser;
    }
    /**修改人
    *@param  updateuser
    */
    public void setUpdateuser(String updateuser){
        this.updateuser = updateuser;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }
}
